package com.tnr.scgcxx.controller.safty;

import com.tnr.scgcxx.base.Constants;
import com.tnr.scgcxx.base.CurrUser;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/safty/home")
public class HomeController {

    @GetMapping("/curruser")
    public CurrUser getCurrUser(@SessionAttribute(Constants.SESSION_ATTR_CURR_USER) CurrUser currUser){
        return currUser;
    }
}
